<div class="page-header">
  <span>{{widget_title}}</span>
  <button class="btn btn-xs btn-success pull-right" style="margin-top: 14.5px;" ng-click="editOrAdd('add')"> 添加证书类型</button>
  <div class="clearfix"></div>
</div>
<table class="table table-hover table-bordered" >
  <thead>
    <tr>
      <th>序号</th>
      <th>名称</th>
      <th>颁发机构</th>
      <th>状态</th>
      <th>操作</th>
    </tr>
  </thead>
  <tbody>
    <tr ng-class="{'danger': certificate_type.state === 'disable'}" ng-repeat="certificate_type in certificate_types">
      <td>{{$index + 1}}</td>
      <td>{{certificate_type.name}}</td>
      <td>{{certificate_type.authority}}</td>
      <td>{{certificate_type.state | translate}}</td>
      <td>
        <a class="btn btn-xs btn-info" ng-click="editOrAdd('edit', certificate_type.id)">修改</a>
        <a class="btn btn-xs btn-danger" ng-click="toggleState(certificate_type)">{{certificate_type.state | toggleState | translate}}</a>
      </td>
    </tr>
  </tbody>
</table>
